package com.dubbo.consumer.Controller;

import com.dubbo.dubbo.demo.IUserOperateService;
import com.netflix.hystrix.contrib.javanica.annotation.HystrixCommand;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
public class UserOperateController {
    @Autowired
    private IUserOperateService userOperate;

    @ResponseBody
    @RequestMapping("/GetHelloWorldReply")
    public String GetHelloWorldReply(@RequestParam("uid")String userName) {
        return userOperate.GetHelloWorldReply(userName);
    }
}
